//If the time on your browser is less than 10,
//you will get a "Good morning" greeting.
var d=new Date()
var time=d.getHours()

if ([...]<10) 
{document.write("<b>Good morning</b>")}